#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[]){
	char *s = NULL;
	char *p = NULL;

	s = malloc(512 * sizeof(char));
	strcpy(s, "Hello Token World");
	printf("%s\n", s);

	p = strtok(s, " \t"); /*passa-se todos os delimitadores (espaco e tab*/
	printf("[%s]\n", p);

	p = strtok(NULL, " \t");
	printf("{%s}\n", p);


	return EXIT_SUCCESS;
}


